package request

import (
	"gitee.com/cjsn/topsdk/ability254/domain"
	"gitee.com/cjsn/topsdk/util"
)

type TmallSscWorkcardAcceptRequest struct {
	/*
	   服务商接单入参     */
	AcceptWorkcardRequest *domain.TmallSscWorkcardAcceptAcceptWorkcardRequest `json:"accept_workcard_request" required:"true" `
}

func (s *TmallSscWorkcardAcceptRequest) SetAcceptWorkcardRequest(v domain.TmallSscWorkcardAcceptAcceptWorkcardRequest) *TmallSscWorkcardAcceptRequest {
	s.AcceptWorkcardRequest = &v
	return s
}

func (req *TmallSscWorkcardAcceptRequest) ToMap() map[string]interface{} {
	paramMap := make(map[string]interface{})
	if req.AcceptWorkcardRequest != nil {
		paramMap["accept_workcard_request"] = util.ConvertStruct(*req.AcceptWorkcardRequest)
	}
	return paramMap
}

func (req *TmallSscWorkcardAcceptRequest) ToFileMap() map[string]interface{} {
	fileMap := make(map[string]interface{})
	return fileMap
}
